// httpService.js
import axiosInstance1 from './axiosAll/axiosInstance1';

function getHttp(url) {
    return new Promise((resolve, reject) => {
        axiosInstance1.get(url)
            .then(response => resolve(response))
            .catch(error => reject(error));
    });
}

function postHttp(url, data) {
    return new Promise((resolve, reject) => {
        axiosInstance1.post(url, data)
            .then(response => resolve(response))
            .catch(error => reject(error));
    });
}

export {
    getHttp,
    postHttp
};